<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ListVars</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>ListVars</h1>

<p>Displays the script's <a href="../Variables.htm">variables</a>: their names and current contents.</p>

<pre class="Syntax">ListVars</pre>
<h3>Remarks</h3>
<p>This command is equivalent to selecting the &quot;View-&gt;Variables&quot; menu item in the main window. It can help you <a href="../Scripts.htm#debug">debug a script</a>.</p>
<p>Each line in the list consists of:<br>
  1) The name of the variable.<br>
  2) The length of the variable's contents and the variable's <a href="VarSetCapacity.htm">capacity</a>. For example: [50 of 63]<br>
3) The first 60 characters of the variable's contents.</p>
<p>If this command is used inside a <a href="../Functions.htm">function</a>, the function's <a href="../Functions.htm#Locals">local variables</a> will be listed first (above the script's global variables).</p>
<p>Known limitation: If a <a href="../Functions.htm">function</a> (or the list of global variables itself) contains more than 10,000 variables, this command might not show them in exact alphabetical order; that is, some might be missing from the display.</p>
<h3>Related</h3>
<p><a href="KeyHistory.htm">KeyHistory</a>, <a href="ListHotkeys.htm">ListHotkeys</a>, <a href="ListLines.htm">ListLines</a></p>
<h3>Example</h3>
<pre class="NoIndent">ListVars</pre>

</body>
</html>
